package com.taritari.mq.mqconsumber.services.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @author taritari
 * @date 2023-11-29 16:38
 * @description
 */
@Service
@RabbitListener(queues = {"sms.direct.queue"})
public class DirectSMSConsumer {
    @RabbitHandler
    public void receiveMessage(String message){
        System.out.println("sms.direct.queue--接收到了消息-->"+message);
    }
}
